EMT Practice Test
1. Question Content...
Question2: What function can reverse the order of values in an array so that keys are preserved?
Question3: SIMULATION
What is the output of the following code?
Question4: What can prevent PHP from being able to open a file on the hard drive? (Choose two.)
Question8: SIMULATION
Which value will be assigned to the key 0 in the following code?
Question9: When would you use classes and when would you use namespaces?
Question11: SIMULATION
What is the output of the following code?
Question14: What is the output of the following code?
Question19: What is the output of the following code?
Question20: What is the output of the following code?
Question21: Which of the following are valid code snippets? (Choose three.)
Question24: Assuming UTF-8 encoding, what is the value of $count?
Question25: Which of the following statements about Reflection are correct?
Question26: SIMULATION
What is the output of the following code?
Question28: SIMULATION
What is the output of the following code?
Question29: What function can be used to retrieve an array of current options for a stream context?
Question30: Which class of HTTP status codes is used for server error conditions?
Question31: What is the benefit of using persistent database connections in PHP? (Choose two.)
Question33: What is the length of a string returned by: md5(rand(). TRUE);
Question35: You want to parse a URL into its single parts. Which function do you choose?
Question36: What is the output of the following code?
Question37: An unbuffered database query will (choose two):
Question38: Given the following array:
Which function will remove the value 28 from $a?
Question39: What is the output of the following code?
Question40: Which options do you have in PHP to set the expiry date of a session?
Question41: What exception type will catch the error raised by the expression 2 / 0?
Question42: What function allows resizing of PHP's file write buffer?
Question43: Which of the following can NOT be used to send a cookie from within a PHP application?
Question45: What function is best suited for extracting data from a formatted string into an array?
Question48: What is the output of the following code?
Question49: What is the output of the following code?
Question51: Which of the following statements about SOAP are NOT true?
Question53: Which of the following will set a 10 seconds read timeout for a stream?
Question55: Which methods can be used to overload object properties? (Choose two.)
Question57: Which of the following is NOT true about PHP traits? (Choose two.)
Question59: What is the output of the following code?
Question60: What is the output of the following code?
Question61: What is the output of the following code?
Question62: What is the difference between the spaceship operator (<=>) and the strcmp() function?
Question64: What is the method used to execute XPath queries in the SimpleXML extension?
Question66: What is the output of the following code?
Question67: After performing the following operations:
What will be the value of $a?
Question68: What method can be used to find the tag <any> via the DOM extension?
Question69: What is the output of the following code?
Question70: What is the output of the following code?
Question71: What will the following function call print?
Question73: Which of the following is NOT possible using reflection?











